import request from '../utils/request'

export function getmonitor() {
  return request({
    url: '/monitor/list',
    method: 'get'
  })
}

export function deletemonitor(data) {
  return request({
    url: '/monitor/delete',
    method: 'post',
    data
  })
}

export function editmonitor(data) {
  return request({
    url: '/monitor/edit',
    method: 'post',
    data
  })
}

export function addmonitor(data) {
  return request({
    url: '/monitor/add',
    method: 'post',
    data
  })
}

export function getrisk() {
  return request({
    url: '/monitor/risk',
    method: 'get'
  })
}
export function finduser(data) {
  return request({
    url: '/monitor/info',
    method: 'post',
    data
  })
}